package lagou.mode3;

public class Student implements java.io.Serializable{
    private static final long serialVersionUID = -621532725735953130L;
    private int student_id;
    private String student_name;
    private int student_age;


    public Student() {
    }

    public Student(int student_id, String student_name, int student_age) {
        setStudent_id(student_id);
        setStudent_name(student_name);
        setStudent_age(student_age);

    }

    public int getStudent_id() {
        return student_id;
    }

    public void setStudent_id(int student_id) {
        this.student_id = student_id;
    }

    public String getStudent_name() {
        return student_name;
    }

    public void setStudent_name(String student_name) {
        this.student_name = student_name;
    }

    public int getStudent_age() {
        return student_age;
    }

    public void setStudent_age(int student_age){
            this.student_age = student_age;
    }
    @Override
    public String toString() {
        return "  学号 " + student_id +
                "  姓名 " + student_name +
                "  年龄 " + student_age ;
    }

}
